namespace EasyNetQ.DI;

/// <summary>
/// Represents the lifetime of a service within DI container.
/// </summary>
public enum Lifetime
{
    /// <summary>
    /// Transient lifetime - each request to the container for
    /// the type will result in a new version being returned.
    /// </summary>
    Transient,

    /// <summary>
    /// Singleton - each request to the container for the type
    /// will result in the same instance being returned.
    /// </summary>
    Singleton
}
